<template>
  <div class="tip">
    <div class="panel">
      <div class="text">
        <h1>你还未登录</h1>
        <h2>登陆后继续使用</h2>
      </div>
      <div class="btn" @click="goSignup"><h3>注册</h3></div>
      <div class="btn" @click="goLogin"><h3>登录</h3></div>
      <div class="btn"><h4>取消</h4></div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
function goLogin() {
  router.push("/Login");
}

function goSignup() {
  router.push("/Registe");
}
</script>

<style scoped>
.tip {
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 10%;
  right: 0;
  display: flex;
  /* flex-basis:; */
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  /* padding: 10px; */
  /* background-color: brown; */
}

.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  top: 6%;
  left: 0;
  right: 0;
  width: 320px;
  height: 150px;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 320px;
  height: 296px;
  background: #ffffff;
  border-radius: 8px;
}

.btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  left: 0%;
  right: 0%;
  height: 56px;
  width: 320px;

  border-top: 1px solid #e5e5e5;
}

h1 {
  height: 24px;
  left: 24px;
  right: 24px;
  top: 32px;

  font-family: "PingFang SC";
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 24px;
  /* identical to box height, or 140% */

  text-align: center;

  color: #000000;

  mix-blend-mode: normal;
  opacity: 0.9;
  padding: 10px;
}

h2 {
  height: 24px;
  left: 24px;
  right: 24px;
  top: 72px;

  font-family: "PingFang SC";
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 24px;
  /* identical to box height, or 140% */

  text-align: center;

  color: #000000;

  mix-blend-mode: normal;
  opacity: 0.5;
}
h3 {
  width: 272px;
  height: 24px;
  left: calc(50% - 272px / 2);
  top: calc(50% - 24px / 2);

  font-family: "PingFang SC";
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 24px;
  /* identical to box height, or 140% */

  text-align: center;
  letter-spacing: 1px;

  color: #576b95;
}
h4 {
  width: 272px;
  height: 24px;
  left: calc(50% - 272px / 2);
  top: calc(50% - 24px / 2);

  font-family: "PingFang SC";
  font-style: normal;
  font-weight: 500;
  font-size: 17px;
  line-height: 24px;
  /* identical to box height, or 140% */

  text-align: center;
  letter-spacing: 1px;

  color: #000000;

  mix-blend-mode: normal;
  opacity: 0.9;
}
</style>
